<div ng-controller="userCtrl" class="clearfix script-content">
    <div class="wrapper-md">
        <div class="panel panel1 panel-default" ng-show="!showDetail">
            <div class="">
                <div class="search-box m-b-md">
                    <div class="legend">查询条件</div>
                    <div class="search-content">
                        <div class="form-group">
                            <label class="control-label">用户名：</label>
                            <input type="userName" ng-model="searchByUsername" class="form-control input-sm" placeholder="" aria-controls="DataTables_Table_3">
                        </div>
                        <div class="form-group">
                            <label class="control-label">角色：</label>
                            <input type="roleName" ng-model="searchByRole" class="form-control input-sm" placeholder="" aria-controls="DataTables_Table_3">
                        </div>
                        <div class="form-group">
                            <label class="control-label">状态：</label>
                            <input type="userStatus" ng-model="searchByStatus" class="form-control input-sm" placeholder="" aria-controls="DataTables_Table_3">
                        </div>
                    </div>
                    <div class="search-btn">
                        <button class="btn btn-info w-xs m-r" ng-click="getData(1)"><i class="fa fa-search"></i> 查询</button>
                        <button class="btn btn-primary w-xs m-r" ng-click="add()"><i class="fa fa-plus-circle"></i> 新增</button>
                    </div>
                </div>

                <div class="">
                    <div class="dataTables_wrapper form-inline">
                        <div class="row">
                            <div class="col-sm-12" style="margin-top: -10px;">
                                <table class="table table-striped b-light m-b-xxs">
                                    <thead class="table-header">
                                    <tr>
                                    	<th width="10%" class="font-15 text-center" style="display:none">用户Id</th>
                                        <th width="10%" class="font-15 text-center">用户名</th>
                                        <th width="10%" class="font-15 text-center">邮箱</th>
                                        <th width="10%" class="font-15 text-center">电话</th>
                                        <th width="10%" class="font-15 text-center">公司</th>
                                        <th width="10%" class="font-15 text-center">用户状态</th>
                                        <th width="10%" class="font-15 text-center">登录状态</th>
                                        <th width="10%" class="font-15 text-center" style="display:none">创建人</th>
                                        <th width="10%" class="font-15 text-center" style="display:none">是否是超级管理员</th>
                                        <th class="text-center td-operate font-15" width="20%">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="table-content" ng-repeat="row in userList" ng-if="!isImageData">
                                    	<td width="10%" class="font-15 text-center text-overflow" style="display:none" style="max-width:162px;" title="{{row.userId}}"  ng-bind="row.userId"></td>
                                        <td width="10%" class="font-15 detail-href text-center text-overflow ng-binding" style="max-width:162px;" title="{{row.userName}}"  ng-bind="row.userName" ng-click="detail(row)"></td>
                                        <td width="10%" class="font-15 text-center text-overflow" style="max-width:162px;" title="{{row.userMail}}" ng-bind="row.role"></td>
                                        <td width="10%" class="font-15 text-center text-overflow" style="max-width:162px;" title="{{row.userPhone}}" ng-bind="row.userPhone"></td>
                                        <td width="10%" class="font-15 text-center text-overflow" style="max-width:162px;" title="{{row.userCompany}}" ng-bind="row.userCompany"></td>
                                        <td width="10%" class="font-15 text-center">
                                            <button class="btn btn-xs disabled" style="width:50px;" ng-class="{'1':'btn-success','2':'btn-warning'}[row.userStatus]" title="{{row.userStatus|userStatus:'userStatus'}}" ng-bind="row.userStatus|userStatus:'userStatus'"></button>
                                        </td>
                                        <td width="10%" class="font-15 text-center">
                                            <button class="btn btn-xs disabled" style="width:50px;" ng-class="{'1':'btn-success','0':'btn-warning'}[row.loginStatus]" title="{{row.loginStatus|loginStatus:'loginStatus'}}" ng-bind="row.loginStatus|loginStatus:'loginStatus'"></button>
                                        </td>
                                        <td width="10%" style="display:none" class="font-15 text-center" title="{{row.userCreator}}" ng-bind="row.userCreator"></td>
                                        <td width="10%" style="display:none" class="font-15 text-center" title="{{row.isAdmin}}" ng-bind="row.isAdmin"></td>
                                        <td width="20%" class="td-operate text-center">
                                            <button class="btn btn-success btn-sm" ng-click="update(row)">
                                                <i class="fa fa-pencil-square-o"></i>
                                                <span class="">编辑</span>
                                            </button>
                                             <button class="btn btn-success btn-sm" ng-click="addRole(row)">
                                                <i class="fa fa-pencil-square-o"></i>
                                                <span class="">角色</span>
                                            </button>
                                            <button class="btn btn-danger btn-sm" ng-click="remove(row.userId)">
                                                <i class="fa fa-trash-o"></i>
                                                <span class="">删除</span>
                                            </button>
                                            <button class="btn btn-warning btn-sm" ng-click="freeze(row.userId)" ng-if="row.isthaw">
                                                <i class="fa  fa-lock"></i>
                                                <span class="">冻结</span>
                                            </button>
                                            <button class="btn btn-warning btn-sm" ng-click="thaw(row.userId)" ng-if="row.isfreeze">
                                                <i class="fa  fa-unlock"></i>
                                                <span class="">解冻</span>
                                            </button>
                                        </td>
                                    </tr>
                                    <tr ng-if="isImageData">
                                        <td class="td-nodata" colspan="6">暂无数据</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <div class="clearfix">
                                    <div class="col-sm-6" style="padding: 7px 15px;">
                                        <div class="paginationTables_info">总共<span ng-bind="totalCount"></span>条, 每页<span ng-bind="param.rows"></span>条</div>
                                    </div>
                                    <div class="col-sm-6 text-right">
                                        <pagination style="" boundary-links="true" total-items="totalCount" items-per-page="param.rows" max-size="10" ng-model="param.page" ng-change="getData(param.page)" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>